.PHONY:all
all:client serverd

.PHONY:Debug
Debug:client_debug serverd_debug

Lib=-ljsoncpp
Serialization=-DMySelf
T_Debug=-D__TEST__DEBUG__

client_debug:client.cpp
	g++ -std=c++11 $^ -o $@ -lpthread $(Lib) $(T_Debug) #$(Serialization)

serverd_debug:server.cpp
	g++ -std=c++11 $^ -o $@ -lpthread $(Lib) $(T_Debug) #$(Serialization)

.PHONY:clean_debug
clean_debug:
	rm -rf client_debug serverd_debug


client:client.cpp
	g++ -std=c++11 $^ -o $@ -lpthread $(Lib) $(Serialization)

serverd:server.cpp
	g++ -std=c++11 $^ -o $@ -lpthread $(Lib) $(Serialization)

.PHONY:clean
clean:
	rm -rf client serverd
